package com.fs.base.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@EnableAutoConfiguration
@RequestMapping("/configAutoDemo")
public class SampleController {
	@Value("${application.message:Hello World}")
	private String message = "Hello World";
	
	@RequestMapping("/message") 
    @ResponseBody
    public String call0() {
    	return message ;
    }
	
}
